Try and remove some of SMIE's black magic by generalizing some rules.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Aug 2010 10:57:48 +0000 (12:57 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Aug 2010 10:57:48 +0000 (12:57 +0200)
commit465567cd0111e2f2dae31a060f3aa4c323b99b42
treeddba5462f8a0a9acca13aebca9a84aee87fc41de
parent7a1641b35f5b6fd10cd7d893bb09005619b32f6e
Try and remove some of SMIE's black magic by generalizing some rules.
* lisp/emacs-lisp/smie.el (smie-default-backward-token)
(smie-default-forward-token): Strip properties.
(smie-next-sexp): Be more careful with associative operators.
(smie-forward-sexp-command): Generalize.
(smie-backward-sexp-command): Simplify.
(smie-closer-alist): New var.
(smie-close-block): New command.
(smie-indent-debug-log): New var.
(smie-indent-offset-rule): Add a few more cases.
(smie-indent-column): New function.
(smie-indent-after-keyword): Use it.
(smie-indent-keyword): Use it.
Fix up the opener code's point position.
(smie-indent-comment): Only applies at BOL.
(smie-indent-debug): New command.
lisp/ChangeLog
lisp/emacs-lisp/smie.el